﻿@model Stardust.Models.Reserva         
        
<h2>Pago de Habitacion al Contado</h2>
<p></p><p></p><p></p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validationEngine-en.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validationEngine.js")" type="text/javascript"></script>

 @using (Html.BeginForm("PagoHabContado", "Pago", FormMethod.Post, new { @class = "form", id = "validate"}))
{
    @Html.ValidationSummary(true);
    <div class="title"><h6>Detalle de Reserva</h6> </div>
     <p></p><p></p>
    
        <table cellpadding = "0" cellspacing = "0" width = "100%" class = "sTable" >

    <thead>
        <tr>
            <td>Producto</td>
           <td>Cantidad</td>
           <td>Precio</td>
          
           
        </tr>
    </thead>

    <tbody>

    @Html.HiddenFor(model => model.id) 
  
    @for (int i = 0; (i < Model.listaHab.Count); i++)
    {
             <tr>                      
                <td> @Html.TextBoxFor(model => model.listaHab[i].nombre, new { @readonly = "readonly" }) </td>
                <td> @Html.TextBoxFor(model => model.listaHab[i].cantidad, new { @readonly = "readonly" }) </td>
                <td> @Html.TextBoxFor(model => model.listaHab[i].precio, new { @readonly = "readonly" }) </td>                
            </tr>

    
    }
         
    <tr>
        <td></td>
        <td>Total Sin IGV</td>
        <td>@Html.TextBoxFor(model => model.subTotal, new { @readonly = "readonly" })</td>
    </tr> 

    <tr>
        <td></td>
        <td>IGV</td>
        <td>@Html.TextBoxFor(model => model.igv, new { @readonly = "readonly" })</td>
    </tr>
    
    <tr>
        <td></td>
        <td>Total</td>
        <td>@Html.TextBoxFor(model => model.total, new { @readonly = "readonly" })</td>
    </tr>

    </tbody>

    </table>
     
     <fieldset>

     <div class="formRow">
                @Html.LabelFor(model => model.usuario)
                <div class = "formRight" >@Html.TextBoxFor(model => model.usuario, new { @readonly = "readonly" })</div>
                <div class = "clear" ></div>
    </div>

    <div class="formRow">
                @Html.LabelFor(model => model.hotel)
                <div class = "formRight" >@Html.TextBoxFor(model => model.hotel, new { @readonly = "readonly" })</div>
                <div class = "clear" ></div>
    </div>

    @*<div class="formRow"> Monto a Pagar lo pongo despues :S
                @Html.LabelFor(model => model.)<span class="req">*</span>
                <div class = "formRight" >@Html.TextBoxFor(model => model.pagado1, new { @class = "validate[required,custom[onlyNumberSp]]", name = "numsValid", maxlength = "6", placeholder = "Solo numeros" })</div>
                <div class = "formRight">@ViewBag.error</div>
                <div class = "clear" ></div>
    </div>    *@

    </fieldset>
    <p></p><p></p><p></p><p></p>
    <p>
        <input type="submit" value="Contado" class = "redB"/>        
        @Html.ActionLink("Regresar", "Listar", "Pago")
    </p>
}
